package org.celery.modules.order.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import org.celery.modules.order.entity.Order;
import org.celery.modules.order.excel.OrderExcel;
import org.celery.modules.order.excel.OrderGoodsExcel;
import org.celery.modules.order.vo.OrderVO;
import org.springblade.core.mp.base.BaseService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.modules.system.entity.User;
import org.springblade.modules.system.excel.UserExcel;

import java.util.List;

/**
 * 订单表 服务类
 *
 * @author Celery
 * @since 2022-04-04
 */
public interface IOrderService extends BaseService<Order> {

	/**
	 * 自定义分页
	 *
	 * @param page
	 * @param order
	 * @return
	 */
	IPage<OrderVO> selectOrderPage(IPage<OrderVO> page, OrderVO order);


	/**
	 * 获取导出订单数据
	 *
	 * @param queryWrapper
	 * @return
	 */
	List<OrderExcel> exportOrder(Wrapper<Order> queryWrapper);

	/**
	 * 获取导出订单数据sheet2
	 *
	 * @param queryWrapper
	 * @return
	 */
	List<OrderGoodsExcel> exportOrderGoods(Wrapper<Order> queryWrapper);

	String getOrderCode(String tenantId);
}
